home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / mfc mdiplayer.win / mfcmdiplayerview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.9 KB  |  63 lines

  1. // MFCMDIPlayerView.h : interface of the CMFCMDIPlayerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #include "CQuickTime.h"
  5.  
  6. class CMFCMDIPlayerView : public CView
  7. {
  8. protected: // create from serialization only
  9.     CMFCMDIPlayerView();
  10.     DECLARE_DYNCREATE(CMFCMDIPlayerView)
  11.  
  12. // Attributes
  13. public:
  14.     CMFCMDIPlayerDoc* GetDocument();
  15.     CString    mfullPath;
  16.     CQuickTime *pQuickTime;        // QuickTime object
  17.     BOOL OpenMovie(void);        // Open a movie
  18.     void CloseMovie(void);        // Close a movie
  19.  
  20. // Operations
  21. public:
  22.  
  23. // Overrides
  24.     // ClassWizard generated virtual function overrides
  25.     //{{AFX_VIRTUAL(CMFCMDIPlayerView)
  26.     public:
  27.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  28.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  29.     virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
  30.     protected:
  31.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  32.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  33.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  34.     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  35.     //}}AFX_VIRTUAL
  36.  
  37. // Implementation
  38. public:
  39.     virtual ~CMFCMDIPlayerView();
  40. #ifdef _DEBUG
  41.     virtual void AssertValid() const;
  42.     virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44.  
  45. protected:
  46.  
  47. // Generated message map functions
  48. protected:
  49.     //{{AFX_MSG(CMFCMDIPlayerView)
  50.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  51.     afx_msg void OnDestroy();
  52.     afx_msg void OnSize(UINT nType, int cx, int cy);
  53.     //}}AFX_MSG
  54.     DECLARE_MESSAGE_MAP()
  55. };
  56.  
  57. #ifndef _DEBUG  // debug version in MFCMDIPlayerView.cpp
  58. inline CMFCMDIPlayerDoc* CMFCMDIPlayerView::GetDocument()
  59.    { return (CMFCMDIPlayerDoc*)m_pDocument; }
  60. #endif
  61.  
  62. /////////////////////////////////////////////////////////////////////////////
  63.